<?php
namespace app\admin\model;

use think\Model;

class User_pool extends Model{
	protected $table = 'tplay_user_pool';

	public function users()
	{
		return $this->belongsTo('UserModel','from_uid','id')->field('id,nickname,phone,headimgurl');
	}

	public function user()
	{
		return $this->belongsTo('UserModel','uid','id');
	}

}